#ifndef __COMPLEX__
#define __COMPLEX__

class complex
{
private:
    double re, im;
    friend complex& _doapl(complex*, const complex&);
public:
    complex(double r = 0, double i = 0)
    : re(r), im(i) {}
    complex& operator += (const complex&);
    double real() const
    {
        return re;
    }
    double imag() const
    {
        return im;
    }
};


#endif